package code;

public class BooleanSource {
	private double probability;
	public BooleanSource(double probability){
		this.probability = probability;
	}
	public boolean requestArrived(){
		if(Math.random()<probability){
			return true;
		}else{
			return false;
		}
	}
}
